/**
 * <p>Copyright (c) 2017 深圳市鹏途交通科技有限公司 </p>
 * <p>				   All right reserved. 		     </p>
 * 
 * <p>项目名称 ： 	深圳市国省检日常化监管系统         </p>
 * <p>创建者   :	hey 
 * 
 * <p>描   述  :   SelfCheckController.java for com.pengtu.gsj.controller.checker    </p>
 * 
 * <p>最后修改 : $: Sep 19, 2017-3:18:09 PM v 1.0.0	 hey   $ </p>
 * 
*/

package com.pengtu.gsj.controller.checker;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.pengtu.gsj.service.system.SysmenuManagerService;
import com.pengtu.gsj.utils.web.SpringMvcUtils;

/**
 * 
 * SelfCheckController
 * 
 * Sep 19, 2017 3:18:09 PM
 * 
 * @version 1.0.0
 * 
 */
@Controller
@RequestMapping("self")
public class SelfCheckController {
	
	@Autowired
	private SysmenuManagerService sysmenuManagerService;
	
	/**
	 * getMenuList:
	 * 适用:获取各级菜单的评分情况
	 * @return 
	 * @exception 
	 * @since  1.0.0
	 */
	@RequestMapping(value = "menuList", produces = "application/json; charset=utf-8")
	@ResponseBody
	public List<Map<String, Object>> getMenuList() {
		String projId = SpringMvcUtils.getParameter("projectId");
		String menuId = SpringMvcUtils.getParameter("menuId");
		List<Map<String, Object>> menuList = new ArrayList<Map<String,Object>>();
		menuList = sysmenuManagerService.getMeunList(menuId, projId);
		return menuList;
	}
}
